Imaging decoding apparatus

ABSTRACT

An image decoding device is provided which includes an intra prediction module for reconstructing an intra prediction mode and creating a prediction block of a current block or a sub block, an inverse scanning module for converting residual signals into a quantization block, an inverse quantization module for inversely quantizing the quantization block, and an inverse transform module for inversely-transforming the inversely-quantized block. A quantization parameter predictor for deriving the quantization parameter is created using quantization parameters of a left coding unit and a top coding unit of a current coding unit. Therefore, it is possible to improve image quality by adaptively adjusting a quantization parameter of a current block depending on the size of a coding unit and enhance compression efficiency of an image by effectively encoding/decoding the quantization parameter to reduce the number of bits required for transmitting the quantization parameter.

TECHNICAL FIELD

The present invention relates to an image decoding device, and moreparticularly, to a device that uses quantization parameters of left andtop coding units to derive a quantization parameter predictor used forgenerating a residual block.

BACKGROUND ART

Image data has to be encoded to efficiently store or transmit the imagedata. MPEG-1, MPEG-2, MPEG-4, H.264/MPEG-4 AVC (Advanced Video Coding),and the like are known as techniques of encoding image data. In thesetechniques, a picture is divided into macro blocks, it is determinedwhich of intra encoding or inter encoding should be performed in theunit of the macro blocks, and the macro blocks are encoded using thedetermined encoding method.

In H.264 which is a latest image compressing technique, intra predictionis performed to enhance the efficiency of the intra encoding. That is,instead of referring to a reference picture to encode a current block, aprediction block is created using pixel values spatially neighboring thecurrent block to be encoded. Specifically, an intra prediction modehaving a small distortion is selected through comparison with anoriginal macro block using the neighboring pixel values and theprediction block of the current block to be encoded is created using theselected intra prediction mode and the neighboring pixel values. Aresidual block including difference signals between the current blockand the prediction block is created and the residual block istransformed, quantized, and entropy-encoded. The intra prediction modeused to create the prediction block is also encoded.

However, in H.264, the intra prediction mode of a current block isencoded regardless of directivity of the intra prediction modes of theleft and top blocks of the current block and there is thus a problem inthat the encoding efficiency is low. When the number of intra predictionmodes increases to enhance the encoding efficiency of a residual block,there is a need for an intra prediction encoding method havingefficiency higher than that of the intra prediction mode encoding methodof H.264.

When coding units having various sizes are allowed unlike in H.264, aquantization parameter can be adaptively changed to improve encodingefficiency of a texture. However, in this case, a large number of bitsare required to transmitting the quantization parameter. Therefore,there is a need for a method capable of effectively reducing the numberof bits.

SUMMARY OF THE INVENTION Technical Problem

An object of the invention is to provide a device which can improveimage quality by adaptively adjusting a quantization parameter of acurrent block depending on the size of a coding unit and enhancecompression efficiency and decompression efficiency of an image byeffectively encoding/decoding the quantization parameter to reduce thenumber of bits required for transmitting the quantization parameter.

Solution to Problem

According to an aspect of the invention, there is provided an imagedecoding device including: an intra prediction module for reconstructingan intra prediction mode and creating a prediction block of a currentblock or a sub block of the current block; an inverse scanning modulefor converting residual signals into a two-dimensional quantizationblock; an inverse quantization module for inversely quantizing thequantization block using the quantization parameter; and an inversetransform module for inversely-transforming the inversely-quantizedblock. A quantization parameter predictor used for deriving thequantization parameter is created using a quantization parameter of aleft coding unit of a current coding unit and a quantization parameterof a top coding unit of the current coding unit.

In the image decoding device, the quantization parameter isreconstructed by adding the quantization parameter predictor to areceived residual quantization parameter, and the quantization parameterpredictor is set as an average value of the quantization parameter ofthe left coding unit and the quantization parameter of the top codingunit.

In the image decoding device, the intra prediction module constructs anMPM group including three intra prediction modes using intra predictionmodes of a left and top blocks of the current block, and reconstructsthe intra prediction mode of the current block using the MPM group and areceived intra prediction information. Also, the MPM group includes aplanar mode, a DC mode and a vertical mode when the intra predictionmodes of the left and the top block of the current block are invalid.

Advantageous Effects

The image decoding device according to the invention includes an intraprediction module for reconstructing an intra prediction mode andcreating a prediction block of a current block or a sub block of thecurrent block, an inverse scanning module for converting residualsignals into a two-dimensional quantization block, an inversequantization module for inversely quantizing the quantization blockusing the quantization parameter, and an inverse transform module forinversely-transforming the inversely-quantized block. A quantizationparameter predictor used for deriving the quantization parameter iscreated using a quantization parameter of a left coding unit of acurrent coding unit and a quantization parameter of a top coding unit ofthe current coding unit.

Therefore, it is possible to improve image quality by adaptivelyadjusting a quantization parameter of a current block depending on thesize of a coding unit and to enhance compression efficiency of an imageby effectively encoding/decoding the quantization parameter to reducethe number of bits required for transmitting the quantization parameter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram illustrating a moving image encoding deviceaccording to an embodiment of the invention.

FIG. 2 is a block diagram illustrating a moving image decoding deviceaccording to another embodiment of the invention.

FIG. 3 is a diagram illustrating a method of creating an intraprediction block in the moving image decoding device according to theembodiment of the invention.

FIG. 4 is a conceptual diagram illustrating intra prediction modesaccording to the embodiment of the invention.

FIG. 5 is a block diagram illustrating an intra prediction blockcreating unit 300 according to the embodiment of the invention.

FIG. 6 is a block diagram illustrating a residual block reconstructingsequence according to the embodiment of the invention.

FIG. 7 is a block diagram illustrating a residual block reconstructingsequence according to another embodiment of the invention.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

Hereinafter, various embodiments of the invention will be described indetail with reference to the accompanying drawings. The invention can bemodified in various forms and can have various embodiments. Theembodiments are not intended for limiting the invention, but it shouldbe understood that the invention includes all the modifications,equivalents, and replacements belonging to the spirit and the technicalscope of the invention. In description of the invention with referenceto the drawings, like constituents are referenced by like referencenumerals.

A moving image encoding device and a moving image decoding deviceaccording to the invention may be user terminals such as a personalcomputer, a notebook PC, a personal digital assistant, a portablemultimedia player, a smart phone, a wireless communication terminal, anda TV or servers providing services. The moving image encoding device andthe moving image decoding device may be apparatuses having acommunication device such as a communication modem for communicatingwith various apparatuses or wireless or wired communication networks, amemory storing various programs and data for encoding and decoding animage, and a microprocessor performing the programs to performoperations and controls.

FIG. 1 is a block diagram illustrating a moving image encoding deviceaccording to an embodiment of the invention.

The moving image encoding device 100 according to the embodiment of theinvention includes an intra prediction module 110, an inter predictionmodule 120, a transform and quantization module 130, an entropy encodingmodule 140, an inverse quantization and inverse transform module 150, apost-processing module 160, a picture buffer 170, a subtraction module190, and an addition module 195.

The intra prediction module 110 creates an intra prediction block usingreconstructed pixels of a picture or slice to which a current blockbelongs. The intra prediction module 110 selects one of a predeterminednumber of intra prediction modes depending on the size of the currentblock to be prediction-encoded and creates a prediction block dependingon the selected intra prediction mode.

The inter prediction module 120 performs a motion estimation operationusing reference pictures stored in the picture buffer 170 and determinesreference picture indices and motion vectors for the motion estimationoperation. Then, the inter prediction module 120 creates an interprediction block of the current block using the reference pictureindices and the motion vectors.

The transform and quantization module 130 transforms and quantizes aresidual block of the prediction block created by the intra predictionmodule 110 or the inter prediction module 120. The transform isperformed using one-dimensional transform matrixes in the horizontal andvertical directions. The residual block for intra prediction istransformed using transform matrixes determined depending on the size ofthe transform block (that is, the size of the residual block) and theintra prediction mode. The residual block for inter prediction istransformed using predetermined transform matrixes.

The transform and quantization module 130 quantizes the transform blockusing a quantization step size. The quantization step size can bechanged by coding units equal to or larger than a predetermined size.

The quantized transform block is supplied to the inverse quantizationand inverse transform module 150 and the entropy encoding module 140.

The inverse quantization and inverse transform module 150 inverselyquantizes the quantized transform block and inversely transform theinversely-quantized transform block to reconstruct the residual block.The addition module adds the residual block reconstructed by the inversequantization and inverse transform module 150 and the prediction blockfrom the intra prediction module 110 or the inter prediction module 120to creates a reconstructed block.

The post-processing module 160 serves to improve image quality of thereconstructed picture and includes a deblocking filter module 161, anoffset module 162, and a loop filter module 163.

The deblocking filter module 161 adaptively applies a deblocking filterto boundaries of the prediction block and the transform block. Theboundaries can be limited to boundaries of 8×8 grids. The deblockingfilter module 161 determines the boundaries to be filtered, determinesboundary strengths thereof, and determines whether the deblocking filtershould be applied to the boundaries when the boundary strength is largerthan 0. When it is determined that the boundaries should be filtered,the deblocking filter module 161 selects a filter to be applied to theboundaries and filters the boundaries with the selected filter.

The offset module 162 determines whether an offset should be applied bypictures or slices so as to reduce the distortion between a pixel in theimage undergoing the deblocking filter module and a correspondingoriginal pixel. Alternatively, a slice is divided into plural offsetareas and the offset type of each offset area can be determined. Theoffset type may include a predetermined number of edge offset types andband offset types. When the offset type is an edge offset type, the edgetype to which each pixel belongs is determined and an offsetcorresponding thereto is applied. The edge type is determined on thebasis of the distribution of two pixel values neighboring a currentpixel.

The loop filter module 163 adaptively loop-filters the reconstructedimage on the basis of the comparison result of the reconstructed imageundergoing the offset module 162 with the original image. It isdetermined whether the reconstructed image should be loop-filtered bycoding units. The size and coefficients of the loop filter to be appliedmay changed by the coding units. Information indicating whether theadaptively loop filter should be applied by coding units may be includedin each slice header. In case of a chroma signal, it can be determinedwhether the adaptive loop filter should be applied by pictures.Therefore, information indicating whether chroma components are filteredmay be included in a slice header or a picture header.

The picture buffer 170 receives post-processed image data from thepost-processing module 160 and reconstructs and stores an image in theunit of pictures. The picture may be an image in the unit of frames oran image in the unit of fields.

The entropy encoding module 140 entropy-encodes the quantizationcoefficient information quantized by the transform and quantizationmodule 130, the intra prediction information received from the intraprediction module 140, the motion information received from the interprediction unit 150, and the like. The entropy encoding module 140includes a scanning module 145 which is used to transform coefficientsof the quantized transform block into one-dimensional quantizationcoefficients.

The scanning module 145 determines a scanning type for transforming thecoefficients of the quantized transform block into one-dimensionalquantization coefficients. The scanning type may vary depending on adirectional intra prediction mode and the size of a transform block. Thequantization coefficients are scanned in the backward direction.

When the quantized transform block is larger than a predetermined size,the transform coefficients are divided into plural sub blocks and arescanned. The scanning types applied to the transform coefficients of thesub blocks are the same. The scanning types applied to the sub blocksmay be a zigzag scan or may be the same scanning types as applied to thetransform coefficients of the sub blocks.

FIG. 2 is a block diagram illustrating a moving image decoding device200 according to an embodiment of the invention.

The moving image decoding device 200 according to the embodiment of theinvention includes an entropy decoding module 210, an inversequantization module 220, an inverse transform module 230, an intraprediction module 240, an inter prediction module 250, a post-processingmodule 260, a picture buffer 270, and an addition module 280.

The entropy decoding module 210 decodes a received bit stream andseparates the bit stream into intra prediction information, interprediction information, quantization coefficient information, and thelike therefrom. The entropy decoding module 210 supplies the decodedintra prediction information to the intra prediction module 240 andsupplies the decoded inter prediction information to the interprediction module 250. The entropy decoding module 210 includes aninverse scanning module 215 for inversely scanning the decodedquantization coefficient information.

The inverse scanning module 215 converts the quantization coefficientinformation into a two-dimensional quantization block. One of pluralscanning types is selected for the conversion. The scanning type mayvary depending on a directional intra prediction mode and the size of atransform block. The quantization coefficients are scanned in thebackward direction. When the quantized transform block is larger than apredetermined size, the transform coefficients are divided into pluralsub blocks and are scanned. The scanning types applied to the transformcoefficients of the sub blocks are the same. The scanning types appliedto the sub blocks may be a zigzag scan or may be the same scanning typesas applied to the transform coefficients of the sub blocks.

The inverse quantization module 220 determines a quantization step sizepredictor of a current coding unit and adds the determined quantizationstep size predictor to the received residual quantization step size toreconstruct the quantization step size of the current coding unit. Theinverse quantization module 220 inversely quantizes the quantizationblock using the quantization step size and the inverse quantizationmatrix. The quantization matrix is determined depending on the size ofthe quantization block and the prediction mode. That is, thequantization matrix is selected on the basis of at least one of theprediction mode of the current block and the intra prediction modes forthe quantization block having a predetermined size.

The inverse transform module 230 inversely transforms theinversely-quantized transform block to reconstruct a residual block. Theinverse transform matrix to be applied to the inverse quantization blockcan be determined depending on the prediction mode and the intraprediction mode.

The addition module 280 adds the prediction block created by the intraprediction module 240 or the inter prediction module 250 to the residualblock reconstructed by the inverse transform module 230 to create areconstructed block.

The intra prediction module 240 reconstructs the intra prediction modeof the current block on the basis of the intra prediction informationreceived from the entropy decoding module 210. Then, the intraprediction module 240 creates a prediction block depending on thereconstructed intra prediction mode.

The inter prediction module 250 reconstructs the reference picture indexand the motion vector on the basis of the inter prediction informationreceived from the entropy decoding module 210. Then, the interprediction module 250 creates a prediction block of the current blockusing the reference picture index and the motion vector. When motioncompensation with decimal prediction is applied, the selectedinterpolation filter is applied to create the prediction block.

The operation of the post-processing module 260 is the same as theoperation of the post-processing module 160 shown in FIG. 1 and thuswill not be described again.

The picture buffer 270 stores the decoded image post-processed by thepost-processing module 260 in the unit of pictures.

FIG. 3 is a diagram illustrating a method of creating an intraprediction block according to the embodiment of the invention.

First, the intra prediction information from the received bit stream isentropy-decoded (S110).

The intra prediction information includes the intra prediction modegroup indicator and the prediction mode index. The intra prediction modegroup indicator indicates whether the intra prediction mode of thecurrent block belongs to an MPM group or a group other than the MPMgroup. The prediction mode index is information indicating a specificintra prediction mode in the intra prediction mode group indicated bythe intra prediction mode group indicator.

The intra prediction mode group indicator can be received in the form ofunsigned integer. In this case, the intra prediction mode groupindicator can be used without being entropy-decoded. Alternatively, theintra prediction mode group indicator may be adaptively entropy-encodeddepending on the type of a current slice. For example, the intraprediction mode group indicator may be entropy-encoded using contextsdetermined depending on the slice type. Therefore, the intra predictionmode group indicator may be decoded using the contexts determineddepending on the type of the current slice. The entropy-encoding methodof the prediction mode index varies depending whether the intraprediction mode belongs to the MPM group or not. Therefore, theprediction mode index is entropy-decoded using different methods.Specifically, when the intra prediction mode group indicator representsthat the intra prediction mode of the current block belongs to the MPMgroup, the prediction mode index is binarized in a truncated Exp-Golombcode manner or a truncated unary manner and is then entropy-encoded.Therefore, after the binary information is acquired by performing theentropy decoding, the prediction mode index is reconstructed using theabove-mentioned methods. When the intra prediction mode group indicatorrepresents that the intra prediction mode of the current block does notbelong to the MPM group, the prediction mode index can be binarized witha fixed length. Therefore, after the binary information is acquired byperforming the entropy decoding, the prediction mode index can bereconstructed.

Then, the MPM group is created using the intra prediction modes of theblocks neighboring the current block and then the intra prediction modeof the current block is reconstructed using the MPM group (S120). TheMPM group includes three intra prediction modes. This will be describedwith reference to FIG. 4. FIG. 4 is a diagram illustrating intraprediction modes according to an embodiment of the invention.

(1) When the intra prediction modes of the top and left blocks of acurrent block are both present and are different from each other, theMPM group includes the two intra prediction modes and one additionalintra prediction mode.

When one of the two intra prediction modes is a DC mode and the other isnot a planar mode, the additional intra prediction mode may be theplanar mode. Similarly, when one of the two intra prediction modes isthe planar mode and the other is not the DC mode, the additional intraprediction mode may be the DC mode.

When the two intra prediction modes are the DC mode and the planar mode,the additional intra prediction mode may be a vertical mode or ahorizontal mode.

When the two intra prediction modes are not the DC mode nor the planarmode, the additional intra prediction mode may be an intra predictionmode having directionality between the two intra prediction modes, orthe DC mode or the planar mode.

(2) When the intra prediction modes of the top and left blocks of thecurrent block are both present and are equal to each other, the MPMgroup includes the intra prediction mode and two additional intraprediction modes.

When the intra prediction mode is neither the DC mode nor the planarmode, the two additional intra prediction modes are set to two intraprediction modes neighboring the intra prediction mode. When the intraprediction mode is the DC mode, the two additional intra predictionmodes may be the planar mode and the vertical mode.

(3) When only one of the intra prediction modes of the top and leftblocks of the current block is present, the MPM group includes the intraprediction mode and two additional intra prediction modes. The twoadditional intra prediction modes are determined depending on the intraprediction mode.

(4) When the intra prediction modes of the top and left blocks of thecurrent block are not present at all, the MPM group includes the DCmode, the planar mode, and the vertical mode.

When the intra prediction mode group indicator indicates the MPM group,the intra prediction mode indicated by the prediction mode index isselected from the MPM group and the selected intra prediction mode isdetermined as the intra prediction mode of the current block. The intraprediction mode group indicator may be flag information representingwhether the intra prediction mode of the current block belongs to theMPM group or a group other than the MPM group.

When the intra prediction mode group indicator does not indicates theMPM group, the intra prediction module 240 determines the intraprediction mode indicated by the prediction mode index out of the intraprediction modes (hereinafter, referred to as residual intra predictionmodes) other than the intra prediction modes belonging to the MPM groupas the intra prediction mode of the current block. The prediction modeindices assigned to the residual intra prediction modes vary dependingon the configuration of the MPM group. That is, the decoded predictionmode indices indicate indices of the residual intra prediction modesrearranged depending on the configuration of the MPM group. Therefore,the intra prediction module 240 selects the intra prediction mode of thecurrent block from the residual intra prediction modes depending on thedecoded prediction mode index and the intra prediction modes belongingto the MPM group.

Specifically, the residual intra prediction modes of the current blockare rearranged in the mode number order and the intra prediction modecorresponding to the received prediction mode index is selected as theintra prediction mode of the current block. In this case, the residualintra prediction modes may be rearranged, but the intra prediction modeof the current block may be determined by comparison of the intraprediction mode numbers belonging to the MPM group with the intraprediction mode index of the current block.

This method can be applied to a case where mode number 2 is assigned tothe DC mode of the non-directional modes, mode number 34 is assigned tothe planar mode, and directional mode numbers are assigned to the othermodes. However, since the probability of selecting the planar mode andthe DC mode as the intra prediction mode of the current is higher thanthose of the other directional modes, a small mode number (for example,mode number 0) is assigned to the planar mode and the above-mentionedmethod can be applied. In this case, the mode numbers of the otherlower-ranked modes increase by 1.

Alternatively, the lowest indices may be assigned to the non-directionalmodes. For example, when the intra prediction mode of the current blockis the planar mode and the residual intra prediction modes include theplanar mode, the intra prediction mode index may include 0. For example,when the residual intra prediction modes include the planar mode and theDC mode, the intra prediction mode corresponding to the prediction modeindex in a state where the planar mode, the DC mode, and the directionalmodes are arranged in this order may be set as the intra prediction modeof the current block. For example, mode number 0 and mode number 1 maybe assigned to the planar mode the DC mode, respectively, or mode number0 and mode number 1 may be assigned to the DC mode and the planar mode,respectively. In this case, the intra prediction mode index of thecurrent block may be compared with the intra prediction mode numbersbelonging to the MPM group to determine the intra prediction mode of thecurrent block.

Then, the size of the prediction block is determined using informationindicating the transform size of the current block (S130).

When the size of the prediction block is equal to the size of thecurrent block, the prediction block is created using the intraprediction mode of the current block and the reference pixels of thecurrent block. The reference pixels are pixels reconstructed or createdpreviously to the current block.

When the size of the prediction block is smaller than the size of thecurrent block, that is, when the current block can be divided intoplural sub blocks and the intra prediction is performed thereon, thesame intra prediction mode (that is, the intra prediction mode of thecurrent block) is used to create the prediction block of each sub block.The prediction blocks of the second sub block or sub blocks subsequentthereto in the decoding order are created using the reconstructed pixelsof the preceding sub blocks. Therefore, after the prediction block, theresidual block, and the reconstructed block are created in the units ofsub blocks, the prediction block of the next sub block is created.

Then, it is determined whether the reference pixels of the blockcorresponding to the size of the prediction block are all valid (S140).The reference pixels are pixels which are previously decoded andreconstructed. When it is determined that at least one of the referencepixels is not valid, the reference pixel is created (S150).

Specifically, when it is determined that the reference pixels are notvalid at all, the reference pixel values are replaced with values of2^(L-1). Here, L represents the number of bits representing the grayscale of luma components.

When valid reference pixels are present in only one direction withrespect to the position of the invalid reference pixel, the closestreference pixel out of the valid reference pixels is copied to createthe reference pixels.

When valid reference pixels are present in both directions with respectto the position of the invalid reference pixel, the reference pixellocated at the closest position in a predetermined direction can becopied or two closest reference pixels in both directions can beaveraged to create the reference pixels.

Then, it is determined whether the reference pixels should be filtered(S160). The reference pixels are adaptively filtered depending on thereconstructed intra prediction mode and the size of the prediction block(S170).

The reference pixels are not filtered when the intra prediction mode isthe DC mode. When the intra prediction modes are the vertical mode andthe horizontal mode, the intra prediction module 240 does not alsofilter the reference pixels. However, when the intra prediction modesare directional modes other than the vertical mode and the horizontalmode, the reference pixels are adaptively filtered depending on theintra prediction mode and the size of the prediction block. When thesize of the prediction block is 4×4, the reference pixels are notfiltered for the purpose of a decrease in complexity regardless of theintra prediction mode. The filtering serves to smooth the variation inpixel value between reference pixels and uses a low-pass filter. Thelow-pass filter may be [1, 2, 1] which is a 3-tap filter or [1, 2, 4, 2,1] which is a 5-tap filter. When the size of the prediction block rangesfrom 8×8 to 32×32, the reference pixels are filtered in more intraprediction modes with an increase in the size of the prediction block.

Then, the prediction block is created depending on the intra predictionmode (S180). The reference pixels used for the prediction block may bepixels which are adaptively filtered depending on the size of theprediction block and the intra prediction mode.

In the DC mode, the average values of N top reference pixels located atpositions of (x=0, . . . , N−1, y=−1), M left reference pixels locatedat positions of (x=1−, y=0, . . . , M−1), and the corner pixel locatedat a position of (x=−1, y=−1) can be determined as the prediction pixelsof the prediction block. However, the prediction pixels neighboring thereference pixels can be created using weighted average of the averagevalue and the reference pixel neighboring the prediction pixel. In theplanar mode, the prediction pixels can be created in the same was as inthe DC mode.

In the vertical mode, the reference pixels located in the verticaldirection are set to the prediction pixels. However, the predictionpixel neighboring the left reference pixel can be created using thereference pixel located in the vertical direction and the variationbetween the left reference pixels. The variation represents thevariation between the corner reference pixel and the left referencepixel neighboring the prediction pixel. In the horizontal mode, theprediction pixels can be created in the same way as in the verticalmode, except for the direction.

FIG. 5 is a block diagram illustrating an intra prediction blockcreating unit 300 according to the embodiment of the invention. Theintra prediction block creating unit 300 according to the inventionincludes a parsing module 310, a prediction mode decoding module 320, aprediction block size determining module 330, a reference pixel validitydetermining module 340, a reference pixel creating module 350, areference pixel filtering module 360, a prediction block creating module370.

The parsing module 310 entropy-decodes a received bit stream to acquiredintra prediction information and transform block size information.

The intra prediction information includes an intra prediction mode groupindicator and a prediction mode index. The intra prediction mode groupindicator represents which of an MPM group and a group other than theMPM group the intra prediction mode of a current block belongs to. Theprediction mode index is information representing a specific intraprediction mode in the intra prediction mode group indicated by theintra prediction mode group indicator. The method of entropy-decodingthe intra prediction information is the same as in step S110 of FIG. 3.

The transform block size information includes at least one flag(split_transform_flag) which represents the transform block size andwhich is transmitted from an encoder.

The prediction mode decoding module 320 creates an MPM group using theintra prediction modes of blocks neighboring a current block andreconstructs the intra prediction mode of the current block using theMPM group and the entropy-decoded intra prediction information. The MPMgroup includes three intra prediction modes.

(1) When the intra prediction modes of the top and left blocks of acurrent block are both present and are different from each other, theMPM group includes the two intra prediction modes and one additionalintra prediction mode.

When one of the two intra prediction modes is a DC mode and the other isnot a planar mode, the additional intra prediction mode may be theplanar mode. Similarly, when one of the two intra prediction modes isthe planar mode and the other is not the DC mode, the additional intraprediction mode may be the DC mode.

When the two intra prediction modes are the DC mode and the planar mode,the additional intra prediction mode may be a vertical mode or ahorizontal mode.

When the two intra prediction modes are not the DC mode nor the planarmode, the additional intra prediction mode may be an intra predictionmode having directionality between the two intra prediction modes, orthe DC mode or the planar mode.

(2) When the intra prediction modes of the top and left blocks of thecurrent block are both present and are equal to each other, the MPMgroup includes the intra prediction mode and two additional intraprediction modes.

When the intra prediction mode is neither the DC mode nor the planarmode, the two additional intra prediction modes are set to two intraprediction modes neighboring the intra prediction mode. When the intraprediction mode is the DC mode, the two additional intra predictionmodes may be the planar mode and the vertical mode.

(3) When only one of the intra prediction modes of the top and leftblocks of the current block is present, the MPM group includes the intraprediction mode and two additional intra prediction modes. The twoadditional intra prediction modes are determined depending on the intraprediction mode.

(4) When the intra prediction modes of the top and left blocks of thecurrent block are not present at all, the MPM group includes the DCmode, the planar mode, and the vertical mode.

When the intra prediction mode group indicator indicates the MPM group,the intra prediction mode indicated by the prediction mode index isselected from the MPM group and the selected intra prediction mode isdetermined as the intra prediction mode of the current block. The intraprediction mode group indicator may be flag information representingwhether the intra prediction mode of the current block belongs to theMPM group or a group other than the MPM group.

When the intra prediction mode group indicator does not indicates theMPM group, the intra prediction module 240 determines the intraprediction mode indicated by the prediction mode index out of the intraprediction modes (hereinafter, referred to as residual intra predictionmodes) other than the intra prediction modes belonging to the MPM groupas the intra prediction mode of the current block. The prediction modeindices assigned to the residual intra prediction modes vary dependingon the configuration of the MPM group. That is, the decoded predictionmode indices indicate indices of the residual intra prediction modesrearranged depending on the configuration of the MPM group. Therefore,the intra prediction module 240 selects the intra prediction mode of thecurrent block from the residual intra prediction modes depending on thedecoded prediction mode index and the intra prediction modes belongingto the MPM group.

Specifically, the residual intra prediction modes of the current blockare rearranged in the mode number order and the intra prediction modecorresponding to the received prediction mode index is selected as theintra prediction mode of the current block. In this case, the residualintra prediction modes may be rearranged, but the intra prediction modeof the current block may be determined by comparison of the intraprediction mode numbers belonging to the MPM group with the intraprediction mode index of the current block.

The MPM group constructing method can be applied to a case where modenumber 2 is assigned to the DC mode of the non-directional modes, modenumber 34 is assigned to the planar mode, and directional mode numbersare assigned to the other modes. However, since the probability ofselecting the planar mode and the DC mode as the intra prediction modeof the current is higher than those of the other directional modes, asmall mode number (for example, mode number 0) is assigned to the planarmode and the above-mentioned method can be applied. In this case, themode numbers of the other lower-ranked modes increase by 1.

Alternatively, the lowest indices may be assigned to the non-directionalmodes. For example, when the intra prediction mode of the current blockis the planar mode and the residual intra prediction modes include theplanar mode, the intra prediction mode index may include 0. For example,when the residual intra prediction modes include the planar mode and theDC mode, the intra prediction mode corresponding to the prediction modeindex in a state where the planar mode, the DC mode, and the directionalmodes are arranged in this order may be set as the intra prediction modeof the current block. For example, mode number 0 and mode number 1 maybe assigned to the planar mode the DC mode, respectively, or mode number0 and mode number 1 may be assigned to the DC mode and the planar mode,respectively. In this case, the intra prediction mode index of thecurrent block may be compared with the intra prediction mode numbersbelonging to the MPM group to determine the intra prediction mode of thecurrent block.

The prediction block size determining module 330 determines the size ofthe prediction block of the current block using the block transformsize. The size of the prediction block may have the size of the currentblock or the size of sub blocks of the current block.

When the size of the prediction block is equal to the size of thecurrent block, the prediction block is created using the intraprediction mode of the current block and the reference pixels of thecurrent block. The reference pixels are pixels reconstructed or createdpreviously to the current block.

When the size of the prediction block is smaller than the size of thecurrent block, that is, when the current block can be divided intoplural sub blocks and the intra prediction is performed thereon, thesame intra prediction mode (that is, the intra prediction mode of thecurrent block) is used to create the prediction block of each sub block.The prediction blocks of the second sub block or sub blocks subsequentthereto in the decoding order are created using the reconstructed pixelsof the preceding sub blocks. Therefore, after the prediction block, theresidual block, and the reconstructed block are created in the units ofsub blocks, the prediction block of the next sub block is created.

The reference pixel validity determining module 340 determines whetherthe reference pixels of the block corresponding to the size of theprediction block are all valid. The reference pixels are pixels whichare previously decoded and reconstructed.

When it is determined that at least one of the reference pixels is notvalid, the reference pixel validity determining module 340 creates thereference pixel.

Specifically, when it is determined that the reference pixels are notvalid at all, the reference pixel values are replaced with values of2^(L-1). Here, L represents the number of bits representing the grayscale of luma components.

When valid reference pixels are present in only one direction withrespect to the position of the invalid reference pixel, the closestreference pixel out of the valid reference pixels is copied to createthe reference pixels.

When valid reference pixels are present in both directions with respectto the position of the invalid reference pixel, the reference pixellocated at the closest position in a predetermined direction can becopied or two closest reference pixels in both directions can beaveraged to create the reference pixels.

The reference pixel filtering module 360 determines whether thereference pixels should be filtered. The reference pixels are adaptivelyfiltered depending on the reconstructed intra prediction mode and thesize of the prediction block.

The reference pixels are not filtered when the intra prediction mode isthe DC mode. When the intra prediction modes are the vertical mode andthe horizontal mode, the intra prediction module 240 does not alsofilter the reference pixels. However, when the intra prediction modesare directional modes other than the vertical mode and the horizontalmode, the reference pixels are adaptively filtered depending on theintra prediction mode and the size of the prediction block. When thesize of the prediction block is 4×4, the reference pixels are notfiltered for the purpose of a decrease in complexity regardless of theintra prediction mode. The filtering serves to smooth the variation inpixel value between reference pixels and uses a low-pass filter. Thelow-pass filter may be [1, 2, 1] which is a 3-tap filter or [1, 2, 4, 2,1] which is a 5-tap filter. When the size of the prediction block rangesfrom 8×8 to 32×32, the reference pixels are filtered in more intraprediction modes with an increase in the size of the prediction block.

The prediction block creating module 370 creates the prediction blockdepending on the intra prediction mode. The reference pixels used forthe prediction block may be pixels which are adaptively filtereddepending on the size of the prediction block and the intra predictionmode.

In the DC mode, the average values of N top reference pixels located atpositions of (x=0, . . . , N−1, y=−1), M left reference pixels locatedat positions of (x=1−, y=0, . . . , M−1), and the corner pixel locatedat a position of (x=−1, y=−1) can be determined as the prediction pixelsof the prediction block. However, the prediction pixels neighboring thereference pixels can be created using weighted average of the averagevalue and the reference pixel neighboring the prediction pixel. In theplanar mode, the prediction pixels can be created in the same was as inthe DC mode.

In the vertical mode, the reference pixels located in the verticaldirection are set to the prediction pixels. However, each predictionpixel neighboring the left reference pixel can be created using thereference pixel located in the vertical direction and the variationbetween the left reference pixels. The variation represents thevariation between the corner reference pixel and the left referencepixel neighboring the prediction pixel. In the horizontal mode, theprediction pixels can be created in the same way as in the verticalmode, except for the direction.

FIG. 6 is a block diagram illustrating a residual block reconstructingsequence according to the embodiment of the invention.

A residual signal received in the unit of a current block or a sub blockis decoded to create a two-dimensional quantization block (S210).

The quantization block is inversely quantized using a quantizationparameter (S220).

The inversely-quantized block is inversely transformed to reconstruct aresidual block (S230).

FIG. 7 is a block diagram illustrating a quantization parameterreconstructing sequence according to the embodiment of the invention.The quantization parameter reconstructing sequence can be performed bythe inverse quantization unit 220 shown in FIG. 2.

A minimum CU size (hereinafter, referred to as a minimum quantization CUsize) enabling changing of the quantization parameter is reconstructed(S310).

The minimum quantization CU size can be signaled using one of thefollowing methods.

In a first method, whether a QP should be changed in the unit of LCU orcan be additionally changed in a sub CU thereof can be indicated usingcu_qp_delta_enabled flag included in a sequence parameter set. When thevalue of cu_qp_delta_enabled flag is 1, that is, when the changing ofQP_(y) in a CU smaller than the LCU is enabled, the minimum quantizationCU size can be signaled using max_cu_qp_delta_depth included in apicture parameter set.

In a second method, the minimum quantization CU size is signaled usingone information piece (cu_qp_delta_depth) through joint coding insteadof transmitting both cu_qp_delta_enabled flag and max_cu_qp_delta_depth.That is, information related to the minimum quantization CU size is nottransmitted from the sequence parameter set, but the minimumquantization CU size is transmitted using cu_qp_delta_depth through thepicture parameter set. Accordingly, it is possible to reduce the numberbits required to transmit the information on the minimum quantization CUsize and to adaptively adjust the size enabling changing of thequantization parameter by PPS, thereby improving encoding performance.

A quantization parameter predictor is calculated on the basis of theminimum quantization CU size (S320). The quantization parameterpredictor can be created using the left quantization parameter of thecurrent CU and the top quantization parameter of the current CU. Forexample, the average value of the left quantization parameter and thetop quantization parameter can be set as the quantization parameterpredictor.

The quantization parameter predictor and the received residualquantization parameter are added to reconstruct the quantizationparameter (S330).

When the current CU is equal to or larger than the minimum quantizationCU size, the quantization parameter of the current CU is reconstructed.However, when the current CU is smaller than the minimum quantization CUsize, plural CUs included in the minimum quantization CU size have thesame quantization parameter.

While the invention has been described with reference to theembodiments, it will be able to be understood by those skilled in theart that the invention can be modified and changed in various formswithout departing from the spirit and scope of the invention describedin the appended claims.

1. An image decoding device comprising: an intra prediction module forreconstructing an intra prediction mode and creating a prediction blockof a current block or a sub block of the current block; an inversescanning module for converting residual signals into a two-dimensionalquantization block; an inverse quantization module for inverselyquantizing the quantization block using the quantization parameter; andan inverse transform module for inversely-transforming theinversely-quantized block, wherein a quantization parameter predictorused for deriving the quantization parameter is created using aquantization parameter of a left coding unit of a current coding unitand a quantization parameter of a top coding unit of the current codingunit.
 2. The image decoding device according to claim 1, wherein thequantization parameter is reconstructed by adding the quantizationparameter predictor to a received residual quantization parameter. 3.The image decoding device according to claim 1, wherein the quantizationparameter predictor is set as an average value of the quantizationparameter of the left coding unit and the quantization parameter of thetop coding unit.
 4. The image decoding device according to claim 1,wherein the intra prediction module constructs an MPM group includingthree intra prediction modes using intra prediction modes of a left andtop blocks of the current block, and reconstructs the intra predictionmode of the current block using the MPM group and a received intraprediction information.
 5. The image decoding device according to claim4, wherein the MPM group includes a planar mode, a DC mode and avertical mode when the intra prediction modes of the left and the topblock of the current block are invalid.
 6. The image decoding deviceaccording to claim 4, wherein the intra prediction information includesan intra prediction mode group indicator and a prediction mode index. 7.The image decoding device according to claim 4, wherein the intraprediction information includes an intra prediction mode group indicatorand a prediction mode index.